<!-- 登录页 -->
<div class='container'>
  <div class="panel panel-default">
    <div class="panel-heading">
      <h4 class="panel-title">登录到网点管理系统</h4>
    </div>
    <div class="panel-body">
      <div class="row Login-box">
        <div class="col-lg-4 col-lg-offset-4">
          <form action="/login/login" method="get" class="form-signin" role="form">
            <input type="text" class="form-control" name="username" placeholder="学号/工号" required="" autofocus="true">
            <input style="margin-top:10px;" type="password" class="form-control" name="password" placeholder="密码" required="">

            <input id="referrer" type="hidden" name="referrer">
            <input id="URL" type="hidden" name="URL">

            <script type="text/javascript">

              console.log('document.referrer的值',document.referrer);   //返回载入当前文档的来源文档的URL
              var referrer=document.getElementById('referrer');
              referrer.setAttribute('value',document.referrer);

              console.log('document.URL的值',document.URL);         //返回文档完整的URL
              var URL=document.getElementById('URL');
              URL.setAttribute('value',document.URL);

            </script>

            
            <div class="checkbox">
              <label>
                <input type="checkbox" value="remember-me">记住密码
              </label>
            </div>
            <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
          </form>
        </div>
      </div>
    </div>
  </div>

  {{>footer}}
</div>
